package nl.moviefan.site.repository;

import nl.moviefan.site.model.MoviefanUser;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.query.Param;

/**
 *Repository interface for users. This repository extends JpaRepository. Implementing CRUD operations is done by JpaRepository. 
 */
public interface UserRepository extends JpaRepository<MoviefanUser, Long> {
	MoviefanUser findByUsername(@Param("username") String username);            
}
